package com.csust.reggie.controller;

import com.csust.reggie.common.R;
import com.csust.reggie.domain.OrderDetail;
import com.csust.reggie.service.IOrderDetailService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 订单明细
 */
@Slf4j
@RestController
@RequestMapping("/orderDetail")
public class OrderDetailController {

    @Autowired
    private IOrderDetailService orderDetailService;

    /**
     *  查看订单明细
     * @return
     */
    @GetMapping("/list")
    public R<String> list(){
        return null;
    }

    /**
     *  查看当前订单账单明细
     * @param id
     * @return
     */
    @GetMapping("/get/{id}")
    public R<OrderDetail> getOrderDetailById(@PathVariable Long id) {
        return null;
    }

    @PutMapping("/update")
    public R<String> update(OrderDetail orderDetail){
        return R.success("更新订单信息成功");
    }

    @DeleteMapping("/delete")
    public R<String> delete(Long id){
        return R.success("删除成功");
    }

}
